package com.xneure.function;

import com.xneure.function.node.IFuncionList;
import com.xneure.function.operator.Priority;
import com.xneure.utils.JsonUtil;

public class FunctionTest{
	public static void main(String[] args){
		FunctionCollect.registerFunction(new ZW());
		FunctionCollect.registerFunction(new ZLL());
		FunctionCollect.registerFunction(new Priority());
		FunctionParse fp = new FunctionParse();
		IFuncionList obj = fp.parse("(zll(q,111,aaa)-zll(q,000,ppp)) and (zw(w,222,bbb,21)+zll(e,333,ccc))");
		// FunctionList obj = fp.parse("zw(ye,\"123\",abc)+(zll(nc,123,text)+zll(n,22,ssst))");
		System.out.println(JsonUtil.toJson(obj));
	}
}
